/* eslint-disable react-hooks/rules-of-hooks */
import useRequest from '../../hooks/use-request';
import React, { useEffect, useState } from 'react';
import styles from './index.module.css';
import axios from 'axios';

// 设置百度地图全局常量

const Map = () => {
  useEffect(() => {
    const map = new BMapGL.Map('container');
    const point = new BMapGL.Point(116.404, 39.915);
    map.centerAndZoom(point, 15);
  }, []);

  return (
    <div className={styles.map}>
      <div id="container" style={{ height: '100%' }}></div>
    </div>
  );
};

export default Map;
